﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Topic.ascx.cs" Inherits="admin_module_Topic" %>
  <table style="width: 100%;" border="0">
    <tr>
      <th height="58" valign="middle" bgcolor="#E5E5E5" scope="col"><h1 align="left">Quản 
          trị Topic</h1></th> <!--// H1 Title -->
    </tr>
    <tr>
      <td bgcolor="#FFFFFF"><p class="bodytext_paragraph">
          Quản trị có thể thêm,sửa,xóa topic<br />
      </p></td>
    </tr>
  </table>
  <h2><br />
    <br />
  </h2>
  
  
  
  
  
  <div id="tables"> <!--// Tables starts -->
        <asp:DataList ID="dlTopic" runat="server" Width="100%" 
        
          DataKeyField="id" ondeletecommand="dlTopic_DeleteCommand" >      
        <HeaderTemplate>
             <th width="80%" height="40" class="title_table" scope="col"><div align="center" class="tabletitles">
                <div align="left">Danh Mục</div> <!--// Column 1 -->
            </div></th>       
            <th width="10%" height="40" class="title_table" scope="col"><div align="center" class="tabletitles">
                <div align="left"><asp:HyperLink ID="add" NavigateUrl="~/admin/default.aspx?action=form_topic" ImageUrl="~/admin/images/icons/add_table.png" Width="18" Height="18" runat="server" ></asp:HyperLink></div>
            </div></th>
            <th width="10%" height="40" class="title_table" scope="col">&nbsp;</th> <!--// Column 6 -->
        
        </HeaderTemplate> 
        
        <ItemTemplate>
            <td height="40" class="bodytext_table">
                <div align="left">
                    <blockquote>
                      <blockquote><%#Eval("name") %></blockquote>
                    </blockquote>
                </div>
            </td>    
            <td height="40" class="bodytext_table"><asp:HyperLink ID="HyperLink1" NavigateUrl='<%#Eval("href") %>' ImageUrl="~/admin/images/icons/edit.png" Width="18" Height="18" runat="server" ></asp:HyperLink></td>
            <td height="40" class="bodytext"><div align="center"><asp:ImageButton runat="server" ID="btnRemove" ImageUrl="~/admin/images/icons/remove.png" Width="18" Height="18"  CommandName="Delete" /></div></td>
             
            
        </ItemTemplate>
        <AlternatingItemTemplate>
            <td bgcolor="#E5E5E5" height="40" class="bodytext_table">
                <div align="left">
                    <blockquote>
                      <blockquote><%#Eval("name") %></blockquote>
                    </blockquote>
                </div>
            </td>    
            <td bgcolor="#E5E5E5" width="37" height="40" class="bodytext_table"><asp:HyperLink ID="HyperLink1" NavigateUrl='<%#Eval("href") %>' ImageUrl="~/admin/images/icons/edit.png" Width="18" Height="18" runat="server" ></asp:HyperLink></td>
            <td bgcolor="#E5E5E5" height="40" class="bodytext"><div align="center"><asp:ImageButton runat="server" ID="btnRemove" ImageUrl="~/admin/images/icons/remove.png" Width="18" Height="18"  CommandName="Delete"/></div></td>
             
        </AlternatingItemTemplate>
        </asp:DataList>
        <div style="position:relative;left:280px;top:10px;"><asp:Label runat="server" Text="Không có danh mục nào" Visible="false" ID="text_empty"></asp:Label></div>
    <br />
  <hr /></div>
  
   <!--// Tables ends -->
  
  
  <p class="bodytext">&nbsp;</p>
  <h1><br />
  </h1>
